import axios from "axios";
import interceptorsResponse from "./interceptors.response";
import interceptorsRequest from "./interceptors.request";

const instance = axios.create({
  timeout: 10000,
  baseURL: '/apis'
})

instance.interceptors.request.use(interceptorsRequest);
instance.interceptors.response.use(interceptorsResponse);

export default {
  get: instance.get,
  post: instance.post,
  put: instance.put,
  delete: instance.delete,
}
